package com.eedi.framework.social.convert;

import com.eedi.framework.common.enums.UserTypeEnum;
import com.eedi.framework.social.controller.sys.vo.user.SysSocialUserBindReq;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface SysSocialUserConvert {

    SysSocialUserConvert INSTANCE = Mappers.getMapper(SysSocialUserConvert.class);

//    @Mapping(source = "reqVO.type", target = "socialType")
    @Mapping(source = "reqVO.code", target = "code")
    com.eedi.framework.social.controller.sys.vo.SysSocialUserBindReq convert(String userId, UserTypeEnum userType, SysSocialUserBindReq reqVO);

}
